* {
    margin: 0;
    padding: 0;
}


/* 清除浮动 */

.clearfix::after {
    content: '';
    display: block;
    clear: both;
    height: 0px;
}


/* 所有a标签 */

a {
    text-decoration: none;
}


/* 所有输入框类型 */

input[type=text],
textarea {
    border: lightblue 1px solid;
}


/* 所有按钮 */

button {
    min-width: 80px;
    height: 30px;
    border: 1px solid lightblue;
    outline: none;
    border-radius: 3px;
}


/* 按钮动画效果 */

button:hover {
    border: 1px solid darkorange;
    outline: 1px solid darkorange;
    border-radius: 0px;
}


/* 禁用（提示） */

.disabled {
    color: red;
}

.red {
    color: red;
}


/* 高度背景色，文字颜色 */

html,
body {
    height: 100%;
    color: #3c3c3c;
    background-color: #fcfcfc;
}


/* 布局 */

body {
    display: flex;
    flex-flow: column;
    border-collapse: collapse;
}


/* 顶部 */

header {
    padding: 8px 0px 0px 20px;
    /* border: 1px solid blue; */
    height: 50px;
    width: 100%;
    background-color: #e9f1f8;
    display: flex;
}


/*  */

header div>span {
    padding: 0px 8px 0px 8px;
}

.header-l {
    flex: 2;
}

.header-r {
    padding-top: 2px;
    flex: 3;
}

.header-r button {
    padding: 0px 5px 0px 5px;
    float: right;
    margin-right: 10px;
}

#usb {
    position: relative;
    width: 24px;
    top: 5px;
    cursor: pointer;
    /* content: url("../images/usb_disconn.png"); */
}

.usbOpened {
    content: url("../images/usb_conn.png");
}

#btnOpenPort {
    position: relative;
}

#btnATF {
    font-weight: 700;
    /* color: red; */
    margin-right: 20px;
}


/* #btnRestart, */

.configMode {
    color: darkorange;
}

.workMode {
    color: #3c3c3c;
}

.easyui-combobox {
    width: 120px;
}

.main {
    flex: 1;
    display: flex;
}


/* 左侧菜单栏 */

.main-l {
    width: 202px;
    border: 1px solid #ebf3fd;
    overflow-y: auto;
    overflow-x: hidden;
}


/* .main-l > div{
    width: 100%;
    height: 100%;
} */


/* easyui菜单 */

#sm {
    width: 200px;
}


/* easyui 菜单下边框 */

.accordion {
    border-right: none;
    border-bottom: 0;
    background-color: #94bff7;
}

.panel-htop {
    border-bottom: 1px solid #fff;
}


/* 子菜单背景色 */

.sidemenu-tree {
    background-color: #e0ecff;
}

.sidemenu-tree li {
    border-top: 1px solid #ccc;
}


/* 右侧主窗体 */

.main-r {
    flex: 1;
    float: left;
    max-width: calc(100% - 202px);
    /*防止easyui的tabs很宽*/
}


/* 刷新和保存按钮区 */

.banner {
    margin: 20px;
    /* display: none; */
}

.banner button {
    margin-right: 20px;
}


/* 页面 */

.page {
    padding: 20px 40px 0px 40px;
    /* display: flex; */
    /* flex-flow: column; */
}

.page>span,
.label {
    display: inline-block;
    min-width: 100px;
}


/* combobox 无效，easyui使用了行内style="width:xx"*/


/* .page > .combo{
    width: 150px;
} */

.page>input[type=text] {
    width: 150px;
    height: 24px;
    outline: none;
}

#PageSystem textarea {
    width: 360px;
    height: 64px;
    outline: none;
    /* resize: none; */
}

.page_header {
    margin-bottom: 20px;
}

.page_header button {
    margin-right: 20px;
}

.page .split {
    height: 14px;
}

.page input[type=checkbox] {
    position: relative;
    top: 1px;
    margin-right: 3px;
    /* outline: none; */
    /* border: none; */
}


/* 页面配置中的按钮(非刷新和保存)，和input保存一样的高度 */

.page .smallBtn {
    position: relative;
    padding: 0px 8px 0px 8px;
    left: 5px;
    top: 1px;
    height: 24px;
}

.page button {
    padding: 3px 7px;
}

.table,
.table th,
.table tr,
.table td {
    border: 1px solid lightblue;
    border-collapse: collapse;
    color: #3c3c3c;
}

.page .tableParent {
    display: inline-block;
    max-height: 420px;
    max-width: 100%;
    overflow: auto;
    /* flex: 1; */
}

.page .dgParent {
    width: 100%;
    overflow: auto;
}

.table {
    min-width: 600px;
}


/* 提示可以编辑 */

.table td[cmdKey],
.table td[ondblclick] {
    color: darkcyan;
}

.table .head {
    z-index: 999;
}

.table th,
.table td {
    padding: 0px 8px 0px 8px;
    min-width: 60px;
}

.table th {
    background-color: #e0ecff;
    text-align: center;
}

.datagrid-header-row {
    background-color: #e0ecff;
}

.table tr {
    height: 36px;
}

.table td:first-child {
    text-align: center;
}

.table td input {
    border: none;
    outline: none;
    max-width: 100%;
}

.table td select {
    border: 0;
    outline: 0;
}


/* 串口工具页面 */

#taRecv,
#taSend {
    width: 100%;
    border: 1px solid lightblue;
    outline: none;
    /* resize: none; */
    resize: vertical;
}

#taRecv {
    height: 300px;
}

#taSend {
    height: 72px;
    font-size: 24px;
}

#btnClear,
#btnClearSend,
#btnSend {
    float: right;
    margin: 5px 0px 5px 0px;
}

#btnClearSend {
    margin-right: 20px;
}

.labelSend {
    position: relative;
    top: 15px;
}

.autoScroll {
    line-height: 40px;
    float: right;
    margin-right: 40px;
}

#cbAutoScroll {
    position: relative;
    top: 1px;
}


/* 模拟量计算器 */

#PageAin #ainCalc {
    float: right;
    cursor: pointer;
    width: 36px;
    height: 36px;
    background: url(../images/calc.png) no-repeat;
}

#calcWindow div {
    padding: 10px 0px 10px 20px;
}

#calcWindow div span {
    display: inline-block;
    width: 120px;
}

#calcWindow input[type=text] {
    display: inline-block;
    width: 60px;
    height: 24px;
    outline: none;
}


/* 模拟量计算器end */


/* 状态栏 */

footer {
    height: 40px;
    border-collapse: collapse;
}

footer>div {
    float: left;
    line-height: 30px;
    border-left: 1px solid lightblue;
    padding: 0px 20px 0px 20px;
}


/* footer #labelVersion::before{
    content: "V";
} */

#labelLastCmd {
    float: right;
}

#labelLastCmd::before {
    content: ">>";
}


/* 发送区下面的工具区 */

.send-toolbar {
    line-height: 40px;
}

.send-toolbar label {
    padding-right: 20px;
}

footer .progressDiv {
    border-top: 1px solid lightblue;
    width: 100%;
    padding: 0px;
}


/* 进度条 */

.progressDiv progress {
    float: left;
    width: 100%;
    height: 8px;
}

progress {
    color: #1cfb05;
    border: none;
}